appVersionApp.filter('toStatus', ['$sce', function ($sce) {
    return function (input) {
        if (input === null) {
            return "-";
        }
        // if (input == null) {
        //     // return "-";
        //     return "<span class='label bg-warning'>未审核</span>";
        // }else if (input == -1){
        //     return "<span class='label bg-danger'>失效</span>";
        // }else if (input == 0){
        //     return "<span class='label bg-warning'>未审核</span>";
        // }else if (input == 1){
        //     return "<span class='label bg-success'>通过审核</span>";
        // }else if (input == 2){
        //     return "<span class='label bg-dark'>未通过审核</span>";
        // }
        if(input === '0'){
            input = "<span class='label bg-dark'>失效</span>";
        }else if(input === '1'){
            input = "<span class='label bg-success'>生效</span>";
        }
        
        return $sce.trustAsHtml(input);
    };
}]),
appVersionApp.filter('toContent', ['$sce', function ($sce) {
    return function (input) {
        if (input === null) {
            return "-";
        }
        return $sce.trustAsHtml(input);
    };
}]);